// 商铺相关请求
import request,{Method} from '@/libs/api.js'

export function getShopAuditPageByParams (params) {
    return request({
      url: '/store/storeinfo/getShopAuditPageByParams',
      method: Method.POST,
      data: params
    });
}

// 更id获取商品详细信息
export function getStoreDetail(id){
  return request({
      url : `/store/storedetail/getStoreDetail/${id}`,
      method: Method.GET,
  })
}

export function editShop (id,params) {
  return request({
    url: `/store/storedetail/editShop/${id}`,
    method: Method.PUT,
    data: params
  });
}

export function auditShop (shopId,status) {
  return request({
    url: `/store/storedetail/auditShop/${shopId}/${status}`,
    method: Method.PUT,
  });
}